/*
 * Module 02
 *
 */

package ua.gl.basecamp.tabachnyy.util;

import java.util.List;
import ua.gl.basecamp.tabachnyy.testcase.Question;

/**
 * @author yaroslav.tabachnyy@gmail.com
 * @version 1.02
 * @date 14.02.2013
 *
 */
public class FileStringQuestionListFactory extends QuestionListFactory {
    private String questionsString;

    public FileStringQuestionListFactory(String questionsString) {
        this.questionsString = questionsString;
    }

    @Override
    public List<Question> createQuestions() {
        QuestionsParser parser = new QuestionsParser(questionsString);
        return parser.parseQuestions();
    }
}
